﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AspWebTest
{
    public partial class WorkflowSetting : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            showData();
        }

        protected void Button_wfCreate_Click(object sender, EventArgs e)
        {
            //創建工作流
            Response.Redirect("WorkflowNew.aspx");
        }

        private void showData()
        {
            //顯示工作流列表
            string sql = "SELECT dbo.wf_wf.name AS 工作流名稱, dbo.wf_wf.usever AS 版本, dbo.wf_wftype.wftype_name AS 類型," +
                " dbo.wf_wf.pos AS 順序, dbo.wf_wf.lasttime AS 修改時間," +
                "dbo.wf_wf.descn AS 描述 FROM dbo.wf_wf INNER JOIN" +
                "dbo.wf_wftype ON dbo.wf_wf.wftype_id = dbo.wf_wftype.wftype_id";
            GridView1.DataSource = CommonLibrary.DB.DBExecuteUtil.querySqlTable(sql);
            GridView1.DataBind();
        }
    }
}
